export default {
  methods: {
    checkedPermission(point) {
      let points = []
      if (this.$store.state.user.userInfo.roles) {
        points = this.$store.state.user.userInfo.roles.points
      }
      return points.indexOf(point) !== -1
    }
  }
}
